# Description: Hafif panel/görev çubuğu
# URL: http://tint2.googlecode.com
# Packager: Vitaly Sinilin, vs at kp4 dot ru
# Depends on: cmake imlib2 pango

name=tint2
version=0.11
release=2
source=(http://$name.googlecode.com/files/$name-$version.tar.bz2 \
        add-power-now-support.patch)

build() {
  cd $name-$version

  patch -p0 -i $SRC/add-power-now-support.patch

  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DENABLE_BATTERY=ON \
    -DENABLE_EXAMPLES=OFF \
    -DENABLE_TINT2CONF=OFF \
    -DMANDIR=/usr/man \
    -DSYSCONFDIR=/usr/etc

  make
  make DESTDIR=$PKG install
  rm -rf $PKG/usr/share
}
